package com.vigor.bear.web.service;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.vigor.bear.web.bean.QueryModel;
import com.vigor.bear.web.bean.Role;

/**
 * 角色业务接口
 * 
 * @author Alan
 */
public interface RoleService {
    int create(Role role);

    int update(Role role);

    int delete(int rid);

    int deleteSelect(String[] rids);

    Role get(int rid);
    
    Role find(String role);

    List<Role> all();
    
    List<Role> all(RowBounds pagination, String sSearch);
    
    List<Role> all(QueryModel queryModel);
}
